package com.dayuanit.dy17.atm.service;

import com.dayuanit.dy17.atm.dto.FlowDTO;

import java.util.List;

public interface IRedisService {

    boolean saveResetPwdEmail(String email);

    void saveTop10Flows(long userId, List<FlowDTO> flows);

    List<FlowDTO> listTop10Flows(long userId);

    void expireKey(String key);

    //JDK8的接口可以有默认实现
    default void save4CountRequestURI(String uri) {

    }
}
